<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>



	<head>

		<title>激活帐号</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="../css/activate.css" rel="stylesheet" type="text/css" />
		<script language="javascript">
		function checkUser() {
			if (document.form1.identitycardno.value=="") {
		    	alert("请输入身份证号!");
		    	document.form1.identitycardno.focus();
		    	return false;
		  	}
		 	var password1 = document.form1.password1.value;
		 	var password2 = document.form1.password2.value;
		  	if (password1=="") {
		    	alert("请输入密码!");
		    	document.form1.password1.focus();
		    	return false;
		  	}
		  	if (password2=="") {
		    	alert("请输入确认密码!");
		    	document.form1.password2.focus();
		    	return false;
		  	}
		  	if (password2!=password1) {
		    	alert("两次密码输入不一致，请重新输入!");
		    	document.form1.password1.focus();
		    	return false;
		  	}
			
		  	document.form1.submit();
		}
		
		</script>
	</head>

	<body>
		<div id="activateMain">
			<form name="form1" action="studentlogin!active.action" method="post">
				<table id="activateTabel">
					<tr>
						<td>
							身份证号:
						</td>
						<td colspan="2">
							<s:textfield name="identitycardno" />
						</td>
					</tr>
					<tr>
						<td>
							新密码：
						</td>
						<td colspan="2">
							<s:password name="password1" />
						</td>
					</tr>
					<tr>
						<td>
							重复新密码：
						</td>
						<td colspan="2">
							<s:password name="password2" />
						</td>
					</tr>
					<tr>
						<td>
							&nbsp;
						</td>
						<th width="80px"></th>
						<th width="60px">
							<button onclick="checkUser();">
								激活
							</button>
						</th>
					</tr>

				</table>
			</form>
		</div>




		<!-- activateMain -->

	</body>
</html>
